﻿
CREATE PROCEDURE [svc].[GetAllSessionLogsByWaitTimeFilter]
(
	@FromDate				datetime,
	@ToDate					datetime, 
	@WaitTimeFilter			int
)
AS
BEGIN

SELECT Id, InstanceName, DatabaseName, WaitTime, LastModifiedDate FROM dbo.ExecSessionLog 
WHERE LastModifiedDate BETWEEN @FromDate AND @ToDate 
AND WaitTime > @WaitTimeFilter 
ORDER BY InstanceName

END